home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / asmutil / ps65a12.zip / MNEMTEST.ASM < prev    next >
Assembly Source File  |  1986-11-26  |  8KB  |  367 lines

  1.          .org 0
  2.          adc #forward1
  3.          adc #h'ff
  4.          adc (100),y
  5.          adc (100,x)
  6.          adc 100
  7.          adc 1000
  8.          adc 1000,x
  9.          adc 1000,y
  10.          adc forward1,x
  11.          adc h'ff,x
  12.          and #forward1
  13.          and #h'ff
  14.          and (100),y
  15.          and (100,x)
  16.          and 100
  17.          and 1000
  18.          and 1000,x
  19.          and 1000,y
  20.          and forward1,x
  21.          and h'ff,x
  22.          asl 100
  23.          asl 1000
  24.          asl 1000,x
  25.          asl a
  26.          asl forward1,x
  27.          asl h'ff,x
  28.          bcc reltst
  29.          bcs reltst
  30.          beq reltst
  31.          bit 1000
  32.          bit forward1
  33.          bit h'ff
  34. reltst: bmi reltst
  35.          bne reltst
  36.          bpl reltst
  37.          brk
  38.          bvc reltst
  39.          bvs reltst
  40.          clc
  41.          cld
  42.          cli
  43.          clv
  44.          cmp #forward1
  45.          cmp #h'ff
  46.          cmp (100),y
  47.          cmp (100,x)
  48.          cmp 100
  49.          cmp 1000
  50.          cmp 1000,x
  51.          cmp 1000,y
  52.          cmp forward1,x
  53.          cmp h'ff,x
  54.          cpx #forward1
  55.          cpx #h'ff
  56.          cpx 100
  57.          cpx 1000
  58.          cpy #forward1
  59.          cpy #h'ff
  60.          cpy 100
  61.          cpy 1000
  62.          dec 100
  63.          dec 1000
  64.          dec 1000,x
  65.          dec forward1,x
  66.          dec h'ff,x
  67.          dex
  68.          dey
  69.          eor #forward1
  70.          eor #h'ff
  71.          eor (100),y
  72.          eor (100,x)
  73.          eor 100
  74.          eor 1000
  75.          eor 1000,x
  76.          eor 1000,y
  77.          eor forward1,x
  78.          eor h'ff,x
  79.          inc 100
  80.          inc 1000
  81.          inc 1000,x
  82.          inc forward1,x
  83.          inc h'ff,x
  84.          inx
  85.          iny
  86.          jmp (1000)
  87.          jmp 100
  88.          jmp 1000
  89.          jsr 100
  90.          jsr 1000
  91.          lda #forward1
  92.          lda #h'ff
  93.          lda (100),y
  94.          lda (100,x)
  95.          lda 100
  96.          lda 1000
  97.          lda 1000,x
  98.          lda 1000,y
  99.          lda forward1,x
  100.          lda h'ff,x
  101.          ldx #forward1
  102.          ldx #h'ff
  103.          ldx 0,y
  104.          ldx 100
  105.          ldx 100,y
  106.          ldx 1000
  107.          ldx 1000,y
  108.          ldy #forward1
  109.          ldy #h'ff
  110.          ldy 0,x
  111.          ldy 100
  112.          ldy 100,x
  113.          ldy 1000
  114.          ldy 1000,x
  115.          lsr 100
  116.          lsr 1000
  117.          lsr 1000,x
  118.          lsr a
  119.          lsr forward1,x
  120.          lsr h'ff,x
  121.          nop
  122.          ora #forward1
  123.          ora #h'ff
  124.          ora (100),y
  125.          ora (100,x)
  126.          ora 100
  127.          ora 1000
  128.          ora 1000,x
  129.          ora 1000,y
  130.          ora forward1,x
  131.          ora h'ff,x
  132.          pha
  133.          php
  134.          pla
  135.          plp
  136.          rol 100
  137.          rol 1000
  138.          rol 1000,x
  139.          rol a
  140.          rol forward1,x
  141.          rol h'ff,x
  142.          ror 100
  143.          ror 1000
  144.          ror 1000,x
  145.          ror a
  146.          ror forward1,x
  147.          ror h'ff,x
  148.          rti
  149.          rts
  150.          sbc #forward1
  151.          sbc #h'ff
  152.          sbc (100),y
  153.          sbc (100,x)
  154.          sbc 100
  155.          sbc 1000
  156.          sbc 1000,x
  157.          sbc 1000,y
  158.          sbc forward1,x
  159.          sbc h'ff,x
  160.          sec
  161.          sed
  162.          sei
  163.          sta (100),y
  164.          sta (100,x)
  165.          sta 100
  166.          sta 1000
  167.          sta 1000,x
  168.          sta 1000,y
  169.          sta forward1,x
  170.          sta h'ff,x
  171.          stx 100
  172.          stx 1000
  173.          stx forward1,y
  174.          stx h'ff,y
  175.          sty 100
  176.          sty 1000
  177.          sty forward1,x
  178.          sty h'ff,x
  179.          tax
  180.          tay
  181.          tsx
  182.          txa
  183.          txs
  184.          tya
  185. synctst1:
  186.          adc #forward1
  187.          adc #forward2
  188.          adc (forward3),y
  189.          adc (forward3,x)
  190.          adc forward3
  191.          adc forward4
  192.          adc forward4,x
  193.          adc forward4,y
  194.          adc forward1,x
  195.          adc forward2,x
  196.          and #forward1
  197.          and #forward2
  198.          and (forward3),y
  199.          and (forward3,x)
  200.          and forward3
  201.          and forward4
  202.          and forward4,x
  203.          and forward4,y
  204.          and forward1,x
  205.          and forward2,x
  206.          asl forward3
  207.          asl forward4
  208.          asl forward4,x
  209.          asl a
  210.          asl forward1,x
  211.          asl forward2,x
  212.          bcc reltst2
  213.          bcs reltst2
  214.          beq reltst2
  215.          bit forward4
  216.          bit forward1
  217.          bit forward2
  218. reltst2: bmi reltst2
  219.          bne reltst2
  220.          bpl reltst2
  221.          bvc reltst2
  222.          bvs reltst2
  223.          clc
  224.          cld
  225.          cli
  226.          clv
  227.          cmp #forward1
  228.          cmp #forward2
  229.          cmp (forward3),y
  230.          cmp (forward3,x)
  231.          cmp forward3
  232.          cmp forward4
  233.          cmp forward4,x
  234.          cmp forward4,y
  235.          cmp forward1,x
  236.          cmp forward2,x
  237.          cpx #forward1
  238.          cpx #forward2
  239.          cpx forward3
  240.          cpx forward4
  241.          cpy #forward1
  242.          cpy #forward2
  243.          cpy forward3
  244.          cpy forward4
  245.          dec forward3
  246.          dec forward4
  247.          dec forward4,x
  248.          dec forward1,x
  249.          dec forward2,x
  250.          dex
  251.          dey
  252.          eor #forward1
  253.          eor #forward2
  254.          eor (forward3),y
  255.          eor (forward3,x)
  256.          eor forward3
  257.          eor forward4
  258.          eor forward4,x
  259.          eor forward4,y
  260.          eor forward1,x
  261.          eor forward2,x
  262.          inc forward3
  263.          inc forward4
  264.          inc forward4,x
  265.          inc forward1,x
  266.          inc forward2,x
  267.          inx
  268.          iny
  269.          jmp (forward4)
  270.          jmp forward3
  271.          jmp forward4
  272.          jsr forward3
  273.          jsr forward4
  274.          lda #forward1
  275.          lda #forward2
  276.          lda (forward3),y
  277.          lda (forward3,x)
  278.          lda forward3
  279.          lda forward4
  280.          lda forward4,x
  281.          lda forward4,y
  282.          lda forward1,x
  283.          lda forward2,x
  284.          ldx #forward1
  285.          ldx #forward2
  286.          ldx 0,y
  287.          ldx forward3
  288.          ldx forward3,y
  289.          ldx forward4
  290.          ldx forward4,y
  291.          lsr forward3
  292.          lsr forward4
  293.          lsr forward4,x
  294.          lsr a
  295.          lsr forward1,x
  296.          lsr forward2,x
  297.          nop
  298.          ora #forward1
  299.          ora #forward2
  300.          ora (forward3),y
  301.          ora (forward3,x)
  302.          ora forward3
  303.          ora forward4
  304.          ora forward4,x
  305.          ora forward4,y
  306.          ora forward1,x
  307.          ora forward2,x
  308.          pha
  309.          php
  310.          pla
  311.          plp
  312.          rol forward3
  313.          rol forward4
  314.          rol forward4,x
  315.          rol a
  316.          rol forward1,x
  317.          rol forward2,x
  318.          ror forward3
  319.          ror forward4
  320.          ror forward4,x
  321.          ror a
  322.          ror forward1,x
  323.          ror forward2,x
  324.          rti
  325.          rts
  326.          sbc #forward1
  327.          sbc #forward2
  328.          sbc (forward3),y
  329.          sbc (forward3,x)
  330.          sbc forward3
  331.          sbc forward4
  332.          sbc forward4,x
  333.          sbc forward4,y
  334.          sbc forward1,x
  335.          sbc forward2,x
  336.          sec
  337.          sed
  338.          sei
  339.          sta (forward3),y
  340.          sta (forward3,x)
  341.          sta forward3
  342.          sta forward4
  343.          sta forward4,x
  344.          sta forward4,y
  345.          sta forward1,x
  346.          sta forward2,x
  347.          stx forward3
  348.          stx forward4
  349.          stx forward1,y
  350.          stx forward2,y
  351.          sty forward3
  352.          sty forward4
  353.          sty forward1,x
  354.          sty forward2,x
  355.          tax
  356.          tay
  357.          tsx
  358.          txa
  359.          txs
  360.          tya
  361. synctst2:
  362.         .equ forward1,h'00
  363.         .equ forward2,h'ff
  364.         .equ forward3,100
  365.         .equ forward4,1000
  366.         .end
  367.